package edu.rit.hvz.android;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;

public class MapPlayerIcon extends Drawable {
	
	private Paint paint = new Paint();
	private int color = Color.BLUE; //Default color is blue
	private int size = 16; // Default pixel size of 6
	
	public MapPlayerIcon(){}; // Here simply so that an instance can be created without a color
	
	public MapPlayerIcon(int color, int size){
		this.color = color;
		this.size = size;
	}
	
	public MapPlayerIcon(int color){
		this.color = color;
	}
	
	@Override
	public void draw(Canvas canvas) {
		paint.setColor(color);
        canvas.drawRect((size/2) * -1, (size/2), (size/2), (size/2) * -1, paint );
	}

	@Override
	public int getOpacity() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void setAlpha(int alpha) {
		// TODO Auto-generated method stub

	}

	@Override
	public void setColorFilter(ColorFilter cf) {
		// TODO Auto-generated method stub

	}

}
